<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Background Properties Exercise</title>
<style>
  .box {
    background-color: deepskyblue; /* 深蓝色 */
    width: 100px;
    height: 100px;
  }

  .image-background {
    background-image: url('../图片/屏幕截图\ 2024-09-08\ 213349.png');
    width: 200px;
    height: 200px;
  }

  .cover-image {
    background-image: url('../图片/屏幕截图\ 2024-09-08\ 213648.png'); 
    background-size: cover; /* 覆盖整个元素 */
    width: 300px;
    height: 300px;
  }

  .header {
    background-image: url('../图片/微信图片1_20240923012308.jpg'); 
    background-position: bottom right; /* 定位到右下角 */
    width: 400px;
    height: 100px;
  }

  .pattern {
    background-image: url('../图片/微信图片1_20240923012308.jpg');
    background-repeat: repeat-y; /* 在垂直方向上重复 */
    width: 300px;
    height: 200px;
  }
</style>
</head>
<body>

<div class="box"></div>

<div class="image-background"></div>

<div class="cover-image"></div>

<div class="header"></div>

<div class="pattern"></div>

</body>
</html>